<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"            
        xmlns:c="http://java.sun.com/jsp/jstl/core"
	template="templateFotoHome.xhtml">
	 
	<ui:define name="head">
             
	</ui:define>

	<ui:define name="content">
            <h:form id="formMedida">
            
    <p:dataGrid var="car" value="#{fotoHomeController.fotosHome}" columns="1"  
        rows="1" paginator="true" 
        paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} "  
        >  
          
        <p:column>  
            <p:panel header="#{car.titulo}" style="text-align:center">  
                <h:panelGrid columns="1" style="width:100%">  
                    <p:graphicImage value="/fotos/#{car.caminho}"/>                  
                </h:panelGrid>  
            </p:panel>  
        </p:column>  
  
    </p:dataGrid>  
      
                 

            </h:form>
        </ui:define>
</ui:composition>
